<template>
	<view>
		<view :class="show?'show':'hide'" >
			<view style="background: #EEEEEE;padding:20rpx 40rpx ;">
				<view style="margin: auto;width: 200rpx;text-align: center;">
					<u-icon :name="icon" :color="iconcolor" size="120"></u-icon>
				</view>
				<view class="u-text-center" style="width: 90%;margin:20rpx auto;font-size: 30rpx;color: #333;">
					{{tags}}
				</view>
				<view class="u-text-center" style="width: 90%;margin:20rpx auto;font-size: 20rpx;color: #666666;">
					{{content}}
				</view>
				<view style="width: 200rpx;margin:  auto;text-align: center;">
					<u-button type="primary" size="mini" @click="ready">我知道了</u-button>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				show:false,
			}
		},
		props:{
			icon:{
				type:String,
			    default:''
			},
			iconcolor:{
				type:String,
				default:''
			},
			tags:{
				type:String,
				default:''
			},
			content:{
				type:String,
				default:''
			}
		},
		methods:{
			ready(){
				this.show=false
				this.$emit('ready')
			}
		}
	}
</script>

<style>
	.show{
		position: fixed;
		left: 50%;
		top: 50%;
		transform:translate(-50%,-50%);
		z-index: 999;
		opacity: 1;
		transition: all 0.3s; 
	}
	.hide{
		position: fixed;
		left: 0%;
		top: -500%;
		opacity: 0;
	}
</style>
